<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>.sync 修饰符</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <cs :change.sync="doc.title"></cs>
    <div>
      {{doc.title}}
    </div>
  </div>
  <script type="module">
    import { ChildSync as cs } from './Child-sync.js'
    new Vue({
      el: '#app',
      components: {
        cs
      },
      data: {
        title: 'hello',
        doc: {
          title: 'aaa'
        }
      }
    })
  </script>
</body>
</html>